package com.yangfan.opening_closing_principle;

/**
 * @description:
 * @author: yangfan
 * @date: Created in 2020/2/10 0010 13:49
 * @modified By:
 */
public class OpenAndCloseTest {

    public static void main(String[] args) {


        Book book2 = new JavaBook(1, "java编程思想", 106.00);

        System.out.println(book2.getBookPrice());




        Book book = new JavaBookDiscount(1, "java编程思想", 106.00);

        System.out.println(book.getBookPrice());



    }

}
